// ===
//test('toBe匹配器',()=>{
//	const a = {age:18}
//	expect(a).toBe({age:18})
//})

test('toEqual匹配器',()=>{
	const a = {age:18}
	expect(a).toEqual({age:18})
})

test('toBeNull匹配器',()=>{
	const a = null
	expect(a).toBeNull()
})

test('toBeUndefined匹配器',()=>{
	const a = undefined
	expect(a).toBeUndefined()
})

test('toBeDefined匹配器',()=>{
	const a = 'zk'
	expect(a).toBeDefined()
})

test('toBeTruthy匹配器',()=>{
	const a = 100
	expect(a).toBeTruthy()
})

test('toBeFalsy匹配器',()=>{
	const a = 0
	expect(a).toBeFalsy()
})

// -------------------------------------------------------------

// >
test('toBeGreaterThan匹配器',()=>{
	const count = 10
	expect(count).toBeGreaterThan(9)
})

// <
test('toBeLessThan匹配器',()=>{
	const count = 10
	expect(count).toBeLessThan(11)
})

// >=
test('toBeGreaterThanOrEqual匹配器',()=>{
	const count = 10
	expect(count).toBeGreaterThanOrEqual(10)
})
// toBeLessThanOrEqual

// toBeCloseTo
test('toBeCloseTo匹配器',()=>{
	const one = 0.1
	const tow = 0.2

	expect(one + tow).toBeCloseTo(0.3)
})

// -------------------------------------------------------------

test('toMatch匹配器',()=>{
	const str = "羊刀、血手、狂徒"

	expect(str).toMatch('羊刀')
})

test('toContain匹配器',()=>{
	const arr = ['羊刀','血手','狂徒']

	expect(arr).toContain('羊刀')
})

test('toContain匹配器',()=>{
	const arr = ['羊刀','血手','狂徒']
	const data = new Set(arr)
	expect(data).toContain('羊刀')
})

const throwNewErrorFunc = ()=>{
	//throw new Error('this is Error')
}
test('toThrow匹配器',()=>{
	expect(throwNewErrorFunc).not.toThrow()
})